<!--
 * @Author: fengxx
 * @Date: 2025-09-08 09:36:59
 * @LastEditors: fengxx
 * @LastEditTime: 2025-09-29 11:30:33
-->

<script lang="ts">
import { defineComponent } from 'vue'
import { useRoute } from 'vue-router'
// import { useRoute } from 'vue-router'

export default defineComponent({
  props: {
    aa: {
      type: String,
      requried: true,
    },
  },
  data() {
    return {
      count: 0,
      routeName: '初始值',
    }
  },
  methods: {
    clickDemo() {
      this.count++
      // console.log(this.count)
    },
  },
  watch: {
    // val:
  },
  computed: {},
  mounted() {
    const route = useRoute()
    console.log(route.query, route.params)
    this.routeName = route.query.aboutName as string
  },
})
</script>
<template>
  <div @click="clickDemo">{{ count }}{{ routeName }}</div>
</template>
